<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>增加文章分类</title>
    <link rel="stylesheet" href="/css/add-type.css">
</head>
<body>
<div id="app">
    <h1>增加文章分类</h1>
    <form id="add-type-form">
        <input type="text" id="type-name" placeholder="分类名称" required />
        <button type="submit">添加</button>
    </form>
    <div id="add-type-response"></div>
    <h2>所有分类</h2>
    <div id="category-list"></div>
    <button onclick="window.location.href='index.html'">返回主页面</button>
</div>
<script src="/js/add-type.js"></script>
</body>
</html>
